
// 自动生成模板LsOrder
package shop
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// lsOrder表 结构体  LsOrder
type LsOrder struct {
    global.GVA_MODEL
  UserId  *int32 `json:"userId" form:"userId" gorm:"comment:用户Id;column:user_id;" binding:"required"`  //用户Id
  ShopId  *int32 `json:"shopId" form:"shopId" gorm:"comment:商品Id;column:shop_id;" binding:"required"`  //商品Id
  OrderType  *string `json:"orderType" form:"orderType" gorm:"comment:订单类型;column:order_type;size:255;"`  //订单类型
  OrderAmount  *int32 `json:"orderAmount" form:"orderAmount" gorm:"comment:订单金额;column:order_amount;"`  //订单金额
  OrderStatus  *string `json:"orderStatus" form:"orderStatus" gorm:"comment:订单状态（字典）;column:order_status;size:255;" binding:"required"`  //订单状态（字典）
  OrderCreateTime  *time.Time `json:"orderCreateTime" form:"orderCreateTime" gorm:"comment:创建时间;column:order_create_time;"`  //创建时间
  OrderPayTime  *time.Time `json:"orderPayTime" form:"orderPayTime" gorm:"comment:支付时间;column:order_pay_time;"`  //支付时间
    CreatedBy  uint   `gorm:"column:created_by;comment:创建者"`
    UpdatedBy  uint   `gorm:"column:updated_by;comment:更新者"`
    DeletedBy  uint   `gorm:"column:deleted_by;comment:删除者"`
}


// TableName lsOrder表 LsOrder自定义表名 ls_order
func (LsOrder) TableName() string {
    return "ls_order"
}





